package com.yeskery.nut.webhook.domain;

import com.yeskery.nut.core.KeyAndValue;

import java.util.List;

/**
 * 请求对象
 * @author sprout
 * @version 1.0
 * 2023-06-03 17:50
 */
public class RequestInformation {

    /**
     * 请求url
     */
    private String url;

    /**
     * 请求方法
     */
    private String method;

    /**
     * ip
     */
    private String remoteIp;

    /**
     * 端口号
     */
    private Integer remotePort;

    /**
     * 请求头
     */
    private List<KeyAndValue<String, String>> headers;

    /**
     * 查询参数
     */
    private List<KeyAndValue<String, String>> queryParmas;

    /**
     * 请求参数
     */
    private List<KeyAndValue<String, String>> requestParmas;

    /**
     * 请求体类型
     */
    private String contentType;

    /**
     * 请求头内容
     */
    private String content;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getRemoteIp() {
        return remoteIp;
    }

    public void setRemoteIp(String remoteIp) {
        this.remoteIp = remoteIp;
    }

    public Integer getRemotePort() {
        return remotePort;
    }

    public void setRemotePort(Integer remotePort) {
        this.remotePort = remotePort;
    }

    public List<KeyAndValue<String, String>> getHeaders() {
        return headers;
    }

    public void setHeaders(List<KeyAndValue<String, String>> headers) {
        this.headers = headers;
    }

    public List<KeyAndValue<String, String>> getQueryParmas() {
        return queryParmas;
    }

    public void setQueryParmas(List<KeyAndValue<String, String>> queryParmas) {
        this.queryParmas = queryParmas;
    }

    public List<KeyAndValue<String, String>> getRequestParmas() {
        return requestParmas;
    }

    public void setRequestParmas(List<KeyAndValue<String, String>> requestParmas) {
        this.requestParmas = requestParmas;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
